
class UserData{
  int  id;
  String   name;
  UserData.fromJson(Map<String, dynamic> json){
      id  = json["id"];
      name  = json["name"];
  }
  Map<String,dynamic> toJson(){
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data["id"] = id;
    data["name"]  = name;
    return data;
  }

}